if(!/micromessenger/.test(window.navigator.userAgent.toLowerCase())){
    window.location = '/needWechat.html'
}
var request = axios.create({
    baseURL:'/'
})

request.interceptors.response.use(function (response) {
    var data = response.data;
    if(data.code === 401){
        window.location='/login.html';
        return null;
    }
    return data;
  }, function (error) {
    // Do something with response error
    return Promise.reject(error);
  });
  